package com.erlinyou.im.web.vo.chat;

import java.util.ArrayList;
import java.util.List;

import com.erlinyou.im.common.util.StringUtil;
import com.erlinyou.im.model.group.Groupmembers;
import com.erlinyou.im.web.vo.CallCenterVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "ChatContactsVo",description = "联系人")
public class ChatContactsVo implements Comparable<ChatContactsVo>{
	/**
	 * 对方id
	 */
	@ApiModelProperty(notes = "对方ID", required = true)
	private Long rid;
	@ApiModelProperty(notes = "对方头像", required = true)
	private String image;
	@ApiModelProperty(notes = "好友昵称,或者群名称", required = true)
	private String name;
	@ApiModelProperty(notes = "群主", required = true)
	private Long owner;
	/**
	 * 消息类型
	 * 1	单聊
	 * 2	群聊
	 */
	@ApiModelProperty(notes = "类型1单聊,2群聊", required = true)
	private int ctype;
	@ApiModelProperty(notes = "好友关系", required = true)
	private int relation;
	private String permission;
	private String fpermission;
	private int isNotice;
	
	
	@ApiModelProperty(notes = "所在群所有群成员", required = true)
	private List<GroupMemVo> groupmembers = new ArrayList<>();
	
//	@ApiModelProperty(notes = "所有callcenter", required = true)
//	private CallCenterVo callCenterVo;
	
	private int callcenterRole;
	
	private int callcenterType;
	
	public List<GroupMemVo> getGroupmembers() {
		return groupmembers;
	}
	public int getIsNotice() {
		return isNotice;
	}

	public void setIsNotice(int isNotice) {
		this.isNotice = isNotice;
	}
	public void setGroupmembers(List<GroupMemVo> groupmembers) {
		this.groupmembers = groupmembers;
	}
	public Long getRid() {
		return rid;
	}
	public void setRid(Long rid) {
		this.rid = rid;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	public int getCallcenterRole() {
		return callcenterRole;
	}
	public void setCallcenterRole(int callcenterRole) {
		this.callcenterRole = callcenterRole;
	}
	public int getCtype() {
		return ctype;
	}
	public void setCtype(int ctype) {
		this.ctype = ctype;
	}
	
	
	public int getCallcenterType() {
		return callcenterType;
	}
	public void setCallcenterType(int callcenterType) {
		this.callcenterType = callcenterType;
	}
	public int getRelation() {
		return relation;
	}
	public void setRelation(int relation) {
		this.relation = relation;
	}
	@Override
	public int compareTo(ChatContactsVo o) {
		
		try {
			return name.compareTo(o.name);
		} catch (Exception e) {
			return -1;
		}
	}
	public Long getOwner() {
		return owner;
	}
	public void setOwner(Long owner) {
		this.owner = owner;
	}
	public String getPermission() {
		return permission;
	}
	public void setPermission(String permission) {
		this.permission = permission;
	}
	public String getFpermission() {
		return fpermission;
	}
	public void setFpermission(String fpermission) {
		this.fpermission = fpermission;
	}
	
	
	
	
	
}
